package com.econ.powercloud.ems.timing.report.prometheus.callback;

import com.econ.powercloud.ems.util.AsyncHttpClientUtil;
import org.springframework.stereotype.Component;

@Component
public class PrometheusMysqlSlowQueriesRateCallback extends AbstractPrometheusSingleDataCallback implements AsyncHttpClientUtil.StringFutureCallback {

    final private String category = "mysql";

    final private String item = "slowQueriesRate";

    @Override
    public void success(String content) {
        dealWithPrometheusCallbackData(content);
    }

    @Override
    String getCategory() {
        return this.category;
    }

    @Override
    String getItem() {
        return this.item;
    }
}
